package com.zsh.mybatis.service;

import com.zsh.mybatis.bean.Employee;
import com.zsh.mybatis.dao.EmployeeMapper;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zsh
 * @Description
 * @create 2022-02-08 15:23
 */
@Service
public class EmployeeService {

    @Autowired
    private EmployeeMapper employeeMapper;
    @Autowired
    private SqlSession sqlSession;

    public List<Employee> getEmployees(){
        return employeeMapper.getEmployees();
    }

}
